<html>
<head>
	<title>xssInput</title>
	<script type="text/javascript">
	function c(){
		obj = document.getElementById('textInput');
		obj.value = '';
	}
	function openfile(){
		window.location.assign("file:///C:/Users/LENOVO/Desktop/test.txt")
		 
	}
	</script>
	<style type="text/css">
		form{
			width: 800px;
			height: 600px;
			margin: 0 auto;
		}
		div{
			font-size: 40px;
			margin: 5px auto;			
		}
	</style>
</head>
<body>
	<form id='main' method='post' action='{% url "myDetector:xssIntoDb" %}'>
		{% csrf_token %}
		<div>Leave your message</div>
		<input name='title' type='text' placeholder='Title' maxlength='30'/>
		<textarea id='textInput' name='inputText' form='main' style="width: 700px;height: 500px;margin: 10px auto;font-size: 25px;">
		</textarea>
		<input name='reset' type='button' value='reset' onclick=c() style="width: 120px;margin: 10px auto;"/>
		<input name='submit' type='submit' value='submit'  style="width: 120px;margin: 10px auto;"/>
	</form>
</body>
</html>